﻿using System;

namespace ClassLibrary
{
    public class Student
    {
        public int StID { get; set; }

        public string LastName { get; set; }

        ~Student() //析构函数，在对象被销毁时自动被调用
        {
            Console.WriteLine("垃圾被回收了：Student 类 " + LastName);
        }
    }
}
